Repository navigation
クロールしても無駄なパスと AI のクローラーを robots.txt で止める - #593
Merged
Merged
Conversation
ExaSearchBot と meta-externalagent は GPTBot と同じく、AI 用のクローラーなので全部止める。 どちらも robots.txt に従うと公言している。 それ以外は、クロールしても意味の無いパスだけを名指しで止める。 クロールしてよいパスだけを許す書き方は退けた。 cdn.imastodon.net も imastodon.net の robots.txt をそのまま返すので、/packs やメディアまで漏れなく並べないと検索エンジンの描画やリンクカードが壊れる。 upstream がパスを足したときも、検索に載るべきページが黙って止まる。 /api/ を丸ごと止めないのは、検索エンジンが画面を描くのに /api/v1/custom_emojis などを取りに来ているため。 /api/v1/timelines/ を止めると /public/local は空に見えるが、中身が分刻みで変わるページで、投稿は /@user/<id> で載るので困らない。 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SWbPafc6c8z6wxBdvafPqc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ExaSearchBot と meta-externalagent を GPTBot と同じく全部止め、ほかのクローラーには /auth/・/users/・/api/v1/timelines/・/api/v1/trends/ を止める。
2026-10-26 の ALB のログでは、meta-externalagent が /auth/sign_up を 1 時間に 7,000 件取りに来ていて、ALB の転送量の 3 分の 1 を占めていた。
許可リストにしなかった理由はコミットメッセージにある。
本番に効かせる imastodon-v4.7 向けと、次の版へ持ち越す imastodon 向けの 2 本を出している。
🤖 Generated with Claude Code
https://claude.ai/code/session_01SWbPafc6c8z6wxBdvafPqc